<?php

	/**
	 * @see Bike_Model_Abstract
	 */
	require_once 'Bike/Model/Abstract.php';
	
	/**
	 * @see Bike_Date
	 */
	require_once 'Bike/Date.php';
	
	
	class Bike_Model_Item extends Bike_Model_Abstract
	{
		protected function _update()
	    {
	    	parent::_update();
	    	$this->setDateUpdate(Bike_Date::now());
	    }

	    protected function _insert()
	    {
	    	parent::_insert();
	    	$Date = Bike_Date::now();
	    	$this->setDateUpdate($Date);
	    	$this->setDateCreate($Date);
	    }

	    public function processGetDateUpdate($Value)
		{			return $this->getDateObject($Value);
		}

		public function processGetDateCreate($Value)
		{
			return $this->getDateObject($Value);
		}

		public function processSetDateUpdate($Date)
		{
			return $this->getDateObject($Date)->getTimestamp();
		}

		public function processSetDateCreate($Date)
		{
			return $this->getDateObject($Date)->getTimestamp();
		}

	}